from threading import Thread, Lock


lock = Lock()
lock2 = Lock()


def p_num():
    for i in range(1, 53, 2):
        lock.acquire()
        print(i)
        print(i+1)
        lock2.release()


def p_word():
    for i in range(65, 91):
        lock2.acquire()
        print(chr(i))
        lock.release()


t1 = Thread(target=p_word)
t2 = Thread(target=p_num)

lock2.acquire()

t1.start()
t2.start()
t1.join()
t2.join()
